package com.bytech.common.biz.entity.system.route;

import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 用于接收前端传参并可以将其组装成一个路由配置对象的对线
 *
 * @Author Zhao
 * @Create 2021/8/15 17:34
 */
@Data
public class MyRouteDefinitionAssemObject {

    private String id;
    private int order;
    private String uri;
    private Integer version;

    private List<FilterObject> filters;
    private List<PredicateObject> predicates;

    @Data
    public static class FilterObject {

        private String name;
        private List<AssmemArgs> args;

        @Data
        public static class AssmemArgs {
            private String key;
            private String value;
        }
    }

    @Data
    public static class PredicateObject {

        private String name;
        private List<AssmemArgs> args;

        @Data
        public static class AssmemArgs {
            private String key;
            private String value;
        }
    }
}
